package main
import (
	"time"
	"github.com/garyburd/redigo/redis"
)
 var pool *redis.Pool

 func initPool(address string,maxIdle int,maxActive int,idleTimeOut time.Duration){
	 pool=&redis.Pool{
		MaxIdle: maxIdle,
		MaxActive: maxActive,
		IdleTimeout: idleTimeOut,
		Dial: func()(redis.Conn,error){
			 return redis.Dial("tcp",address)
		 },}
 }